package cn.wjzhang.core.beans.request;

import cn.wjzhang.core.enums.AutoLogEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * ========================
 * 系统日志切面参数
 *
 * @author wjzhang
 * @version v1.0
 * ========================
 * @date 2023/6/20 9:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysLogParam", description = "系统日志请求参数")
public class SysLogAddRequest {


    @ApiModelProperty(value = "日志类型")
    private Integer logType;

    @ApiModelProperty(value = "操作类型")
    private Integer operateType;

    @ApiModelProperty(value = "系统appId")
    private Integer appId;

    @ApiModelProperty(value = "系统名称")
    private String appName;

    @ApiModelProperty(value = "耗时 ms")
    private Long costTime;

    @ApiModelProperty(value = "请求IP")
    private String ip;

    @ApiModelProperty(value = "请求参数")
    private String requestParam;

    @ApiModelProperty(value = "响应结果")
    private String response;

    @ApiModelProperty(value = "请求路径")
    private String requestUrl;

    @ApiModelProperty(value = "请求方法")
    private String method;

    @ApiModelProperty(value = " 操作人用户名称")
    private String username;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "浏览器名称")
    private String browserName;





    @ApiModelProperty(value = "操作详细日志")
    private String logContent;


}